package com.sls.mall.cart.service;

import com.sls.mall.cart.vo.Cart;
import com.sls.mall.cart.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

public interface CartService {
    CartItem saveCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItem getCartItem(Long skuId);

    Cart getCart() throws ExecutionException, InterruptedException;

    List<CartItem> getCurrentCartItems();

}
